package com.buli.blmall.admin.exception.error;

/**
 * @author xiang.gao
 * @date 2024/12/18 16:38
 */
public enum LoginErrorCode {

    /** 登录相关错误码 */
    LOGIN_FAILED(40000, "登录失败"),
    USER_NOT_EXIST(40001,"用户不存在"),
    PHONE_NOT_EXIST(40002,"手机号不存在"),
    PASSWORD_ERROR(40003,"密码错误"),
    LOGIN_TYPE_ERROR(40004,"登录方式错误"),
    CAPTCHA_EXPIRE(4005, "验证码已过期"),
    CAPTCHA_ERROR(40006,"验证码错误"),
    UNLOGING_ERROR(40007,"未登录"),
    RETRY_ERROR(40008,"登录错误次数过多，请稍后再试"),
    LOGIN_LOCKED(40009,"登录已锁定"),
    ;

    private Integer code;
    private String mesage;

    public Integer getCode() {
        return code;
    }

    public String getMesage() {
        return mesage;
    }

    LoginErrorCode(Integer code, String message) {
        this.code = code;
        this.mesage = message;
    }

}
